#!/bin/bash
BACKUP_DIR="/backups/files"
SOURCE_DIR="/var/www"
DATE=$(date +%F)
tar -czf $BACKUP_DIR/backup_$DATE.tar.gz $SOURCE_DIR
